<%@page import="jsp.Datetime"%>
<%@page import="jpa.entities.Task"%>
<jsp:useBean id="user" class="jsp.classes.Session" scope="session"/>
<%
    Task t = user.findTaskById(Long.parseLong(request.getParameter("id")));
%>
<p class="Title2">Task Details</p>
<table>
    <tr><td>State</td><td><b><%=t.getState()%></b></td></tr>
    <tr><td>Name</td><td><%=t.getName()%></td></tr>
    <tr><td>Deadline</td><td><b><%=Datetime.format(t.getDeadLine(), "%d, %m, %Y")%></b></td></tr>
    <tr><td>Details</td><td><textarea class="taskTextarea"><%=t.getDetail()%></textarea></td></tr>
    <tr><td>Notes</td><td><textarea class="taskTextarea"><%=t.getNotes()%></textarea></td></tr>
    <tr><td>StartDate</td><td><%=Datetime.format(t.getStartDate(), "%d, %m, %Y")%></td></tr>
    <tr><td>EndDate</td><td><%=Datetime.format(t.getEndDate(), "%d, %m, %Y")%></td></tr>
</table>
<a href="javascript: alert('nog niet klaar.')" class="saveButton"><div class="saveButton"><p class="okText">START</p></div></a>
<a href="javascript: alert('nog niet klaar.')" class="saveButton" style="float:right;"><div class="saveButton"><p class="okText">STOP</p></div></a>
<br/><br/><br/>
<a href="javascript: alert('nog niet klaar.')" class="doneButton"><div class="doneButton"><p class="okText">DONE</p></div></a>